fix(subflows): fix pointer events for nested subflow interaction#3409
Merged
waleedlatif1 merged 2 commits intostagingfrom Mar 4, 2026
Merged
fix(subflows): fix pointer events for nested subflow interaction#3409waleedlatif1 merged 2 commits intostagingfrom
waleedlatif1 merged 2 commits intostagingfrom
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Contributor
Greptile SummaryThis PR fixes pointer-event handling for subflow (loop/parallel) nodes so that clicks correctly reach nested child blocks rather than being swallowed by the subflow wrapper. It does this with two changes: setting Key points:
Confidence Score: 3/5
Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A["div.group.relative\n(pointer-events: none) ← NEW"]
A --> B["blockRef div\n(pointer-events: none) — pre-existing"]
B --> C["ActionBar container\n(pointer-events-auto) ← NEW"]
C --> D["Action Buttons\n(clickable ✓)"]
B --> E["Header / drag-handle\n(pointer-events: auto)"]
B --> F["Content area\n(pointer-events: none)"]
F --> G["Start label\n(pointer-events: auto)"]
F --> H["Child ReactFlow nodes\n(pointer-events: auto — own events)"]
B --> I["Input / Output Handles\n(pointer-events: auto)"]
style A fill:#ffd7d7,stroke:#c00
style C fill:#d7ffd7,stroke:#090
Last reviewed commit: c82d738 |
apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/subflows/subflow-node.tsx
Outdated
Show resolved
Hide resolved
apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/subflows/subflow-node.tsx
Outdated
Show resolved
Hide resolved
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
pointer-events: noneon subflow outer wrapper so clicks pass through to nested child nodespointer-events-autoto ActionBar so buttons are clickable on subflow nodesType of Change
Testing
Tested manually
Checklist